(function(){
  let sUserAgent = navigator.userAgent;
  let mobileAgents = ['Android','iPhone','Symbian','WindowsPhone','iPod','BlackBerry','WindowsCE'];
  let goUrl = 0;
  console.log('isPhone')
  for(let i=0;i<mobileAgents.length;i++){
    if(sUserAgent.indexOf(mobileAgents[i]) > -1){
      console.log(mobileAgents[i])
      goUrl = 1;
      break;
    }
  }
  if(goUrl == 1){
    window.location = 'http://ht.tfnhg.com/mobile'
  }
})()
